import request from "@/utils/request";
import type { LoginParamsType, LoginResultType, UserInfoType } from "@/types/user";
// 登录
export const reqLogin = (userInfo: LoginParamsType) => {
    return request.post<null, LoginResultType>("/admin/acl/index/login", userInfo);
};
// 退出登录
export const reqLogout = () => {
    return request.post<null, null>("/admin/acl/index/logout");
};
// 获取用户信息
export const reqGetUserInfo = () => {
    return request.get<null, UserInfoType>("/admin/acl/index/info");
};
